public class User {
    private  String userName;
    private  String password;

    public User(){

    }

    public User(String userName, String password) {
        this.userName = userName;
        this.password = password;
    }
    public String getUserName() {
        return userName;
    }
    public void setUserName(String userName) {
        this.userName = userName;
    }
    public String getPassword() {
        return password;
    }
    public void setPassword(String password) {
        this.password = password;
    }
    //
    public boolean login(String userNameparam,String passwordparam){

        System.out.println("传递过来的用户名:" + userNameparam);
        System.out.println("传递过来的密码:" + passwordparam);
        if (userNameparam.equals("liminglovely") && passwordparam.equals("lili")) {
            return true;
        }else{
            return false;
        }
    }
}
